<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 本地引入 -->
    <script src="../js/jquery-3.6.0.min.js"></script>
    <!-- 引入在线 CDN -->
    <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>

<body>
    <ul class="list">
        <li>01</li>
        <li>02</li>
        <li>03</li>
        <li>04</li>
        <li>05</li>
        <li>06</li>
    </ul>
</body>
<script>
    // var liList = document.querySelectorAll(".list li");

    // for (var i = 0; i < liList.length; i++) {
    //     var li = liList[i];
    //     li.textContent = "hello";
    // }

    $(".list li").text("hello");


</script>

</html>